package com.woniuxy.springboot03.controller;

import ch.qos.logback.core.net.SyslogOutputStream;
import com.woniuxy.springboot03.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@RestController
public class HelloController {
    @Autowired
    private User user;
    @GetMapping("/hello")
    public String hello(){
        System.out.println(user);
        return "hello!!!!"+user.getName()+user.getSchool();
    }
}
